package com.appkubes.mall.admin.application.utm.utm.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

@Data
public class UtmEditVO {

    @ApiModelProperty("key")
    @NotEmpty(message = "不可为空")
    String utmKey;

    @ApiModelProperty("渠道名称")
    String utmName;

    @ApiModelProperty("渠道编码，用户自定义")
    String utmCode;

    @ApiModelProperty("渠道电话")
    String contactPhone;

    @ApiModelProperty("是否开启扣量,1为开启，0为关闭")
    Integer isDeduction;

    @ApiModelProperty("扣量比例")
    Integer deductionRate;

    @ApiModelProperty("uv单价")
    BigDecimal uvPrice;

    @ApiModelProperty("关联的后台管理员key")
    String customerKey;

    @ApiModelProperty("渠道类型(USER/ORGANIZATION)")
    @NotEmpty(message = "类型不能为空")
    @Pattern(regexp = "(USER|ORGANIZATION)", message = "类型不正确")
    String sourceType;

    @ApiModelProperty("状态(0/1)")
    byte state;
}
